﻿using SachOnlineLibrary.Public;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WebUserControlLeft : System.Web.UI.UserControl
{
    public List<Sach> item = new List<Sach>();
    public int soluong = 0;
    public string tong = "0";

    protected void Page_Load(object sender, EventArgs e)
    {
        
        if (Session["Cart"] != null)
        {
            item = Session["Cart"] as List<Sach>;
            //soluong = Cart_Temp.TongSoLuong(item);
            //tong = String.Format("{0:0,0}", Cart_Temp.TongTien(item));
            if (Session["TONG"] == null)
            {
                tong = "0";
            }
            else
                tong = Session["TONG"].ToString();
        }
    }
}